<template>
  <div class="manage">
    <base-task-page :title="title" :reqFuns="reqFuns" :tableLabelEx="tableLabelEx"
                    :operateRulesEx="operateRulesEx"
                    :detailFormLabelEx="detailFormLabelEx"
                    :operateFormLabelEx="operateFormLabelEx"></base-task-page>
  </div>
</template>

<script>
import BaseTaskPage from '@/views/base/BaseTaskPage'
import {checkLon, checkLat} from '@/utils/validate'

export default {
  components: {
    BaseTaskPage
  },
  data() {
    return {
      title: '调整航标',
      reqFuns: {
        getTasks: 'getChangeTaskList',
        addTask: 'addChangeTask'
      },
      tableLabelEx: [
        {
          prop: 'Code',
          label: '任务编号'
        },
        {
          prop: 'AtoNName',
          label: '航标名称'
        },
        {
          prop: 'NavigationType',
          label: '航标类型'
        },
        {
          prop: 'ChannelName',
          label: '港口名称'
        },
        {
          prop: 'SeaRoute',
          label: '航道名称'
        },
        {
          prop: 'BeforeLocation',
          label: '调整前坐标'
        },
        {
          prop: 'Location',
          label: '调整后坐标'
        },
        {
          prop: 'Time',
          label: '完成时间'
        },
        {
          prop: 'Status',
          label: '任务状态'
        }
      ],
      detailFormLabelEx: [
        {
          model: 'Code',
          label: '编号',
          type: 'input',
          readOnly: true
        },
        {
          model: 'AtoNName',
          label: '航标名称',
          type: 'input',
          readOnly: true
        },
        {
          model: 'NavigationType',
          label: '航标类型',
          type: 'input',
          readOnly: true
        },
        {
          model: 'ChannelName',
          label: '港口名称',
          type: 'input',
          readOnly: true
        },
        {
          model: 'SeaRoute',
          label: '航道名称',
          type: 'input',
          readOnly: true
        },
        {
          model: 'PublishTime',
          label: '发布时间',
          type: 'input',
          readOnly: true
        },
        {
          model: 'Name',
          label: '任务执行人',
          type: 'input',
          readOnly: true
        },
        {
          model: 'Elevation',
          label: '高程',
          type: 'input',
          readOnly: true
        },
        {
          model: 'StartTime',
          label: '开始时间',
          type: 'input',
          readOnly: true
        },
        {
          model: 'CompleteTime',
          label: '完成时间',
          type: 'input',
          readOnly: true
        },
        {
          model: 'BeforeLocation',
          label: '调整前位置',
          type: 'input',
          readOnly: true
        },
        {
          model: 'Location',
          label: '设定坐标',
          type: 'input',
          readOnly: true
        },
        {
          model: 'UploadLocation',
          label: '实际调整后位置',
          type: 'input',
          readOnly: true
        },
        {
          model: 'ReMark',
          label: '备注信息',
          type: 'input',
          readOnly: true
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
@import 'src/styles/scss/common';
</style>

